<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<style>
</style>

<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false">
        <table class="easyui-datagrid" data-options="border:false">   
    <thead>   
        <tr>   
            <th data-options="field:'taskId'">任务ID</th>   
            <th data-options="field:'taskName'">任务名称</th>   
            <th data-options="field:'userName'">评论人</th>   
            <th data-options="field:'time'">评论时间</th>   
            <th data-options="field:'comment'">评论内容</th>   
        </tr>   
    </thead>   
    <tbody>   
    	<c:forEach var="comment" items="${comments}">
    	  <tr>   
            <td>${comment.taskId}</td>
            <td>${comment.taskName}</td>
            <td>${comment.userName}</td>
            <td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${comment.time}"/></td>   
            <td>${comment.comment }</td>
        </tr>  
    	</c:forEach>
    </tbody>   
</table>  
    </div>
</div>
